import http from '@/utils'

class ContractAudit {
  // 获取列表
    getList(reload) {
        let url = '/contract_audit/index';
        return http.get(url, reload)
    }

    // 新增
    createContent(reload) {
        let url = '/contract_audit/create';
        return http.post(url, reload)
    }

    // 编辑
    editContent(reload) {
        let url = '/contract_audit/edit';
        return http.post(url, reload)
    }

    // 详情 detail 参数 id
    getContentDetail(reload) {
        let url = '/contract_audit/detail';
        return http.get(url, reload)
    }

    // 删除
    deleteContent(reload) {
        let url = '/contract_audit/delete';
        return http.post(url, reload)
    }

    // 更新唯一字段
    updateOnlyfield(reload) {
        let url = '/contract_audit/onlyfield';
        return http.post(url, reload)
    }

    // 获取审核状态
    getExamineStatus(reload) {
      let url = '/contract_audit/audit_status';
      return http.get(url, reload)
    }

    // 审核
    auditContent(reload) {
        let url = '/contract_audit/audit';
        return http.post(url, reload)
    }
}

export default new ContractAudit()